import Cookies from 'js-cookie'

const TokenKey = 'vue_admin_template_token'
const Password = 'password'
// token
export function getToken() {
  return Cookies.get(TokenKey)
}
export function setToken(token) {
  return Cookies.set(TokenKey, token, { expires: 365 })
}
export function removeToken() {
  return Cookies.remove(TokenKey)
}

// 账号密码
export function getPass() {
  return Cookies.get(Password)
}
export function setPass(pass) {
  return Cookies.set(Password, pass, { expires: 365 })
}
export function removePasss() {
  return Cookies.remove(Password)
}
